package org.mindrive.system.dao;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.mindrive.system.dao.mapper.ApprovalMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.mindrive.system.collection.expenses.ApprovalEntity;

import java.util.List;

/**
 * (Approval)表数据库访问层
 *
 * @author maweihong
 * @since 2023-10-30 14:22:27
 */
@Service
public class ApprovalDao extends ServiceImpl<ApprovalMapper , ApprovalEntity> {

    @Autowired
	private ApprovalMapper approvalMapper;

    public List<ApprovalEntity> searchApprovalByTime(Integer year , Integer month){
        return approvalMapper.searchApprovalByTime(year , month);
    }

    public List<ApprovalEntity> searchApprovalByTimeAndRole(int year , int month , String roleName){
        return approvalMapper.searchApprovalByTimeAndRole(year , month , roleName);
    }
}

